#pragma once

#include <windows.h>

#include <stdio.h>

//
#define GLEW_STATIC
#include <gl\glew.h>

#pragma comment( lib, "opengl32.lib" )
#pragma comment( lib, "glu32.lib" )
#ifdef _DEBUG
#pragma comment( lib, "glew32sd.lib" )
#else //_DEBUG
#pragma comment( lib, "glew32s.lib" )
#endif //_DEBUG


//
class GLRender
{
public:
	GLRender( );
	~GLRender(void);

private:
	HWND	m_hWnd;
	HDC		m_hDC;
	HGLRC	m_hGLRC;

	BOOL	m_bInitialize;

public:
	BOOL	Supported( );

public:
	virtual BOOL	InitRender( HWND hWnd, long ColorBits = 32 );
	virtual BOOL	ExitRender( );

public:
	virtual int		OnRender( );
	virtual BOOL	OnBeginRender( );
	virtual BOOL	OnEndRender( );
};
